<?php
/**
 * Created by PhpStorm.
 *
 * Author : Traveler.
 * Time   : 2019/12/25 20:52
 * Company: Inner Mongolia Zhengzhi Network Technology Co., Ltd
 */

namespace app\admin\middleware;


class Login
{
    public function handle($request, \Closure $next)
    {
        if (!session('?admin_id')) {
            return redirect((string)url('Login/index'));
        }

        return $next($request);
    }
}